<template>
  <div class="hello">
    <!--    双向绑定 words 变量-->
    <input v-model="words" type="text">
    <h3>{{ words }}</h3>
  </div>
</template>

<script>
  export default {
    name: 'HelloWorld2',
    data() {
      return {
        words: 'HelloWorld2',
      };
    },
  };
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  h3 {
    margin: 40px 0 0;
  }
</style>
